class @AdminResponseEditModel extends Backbone.Model
    
    defaults:
        ResponseId: 0
        Content: ''
        DateOfPublish: ''
        BookId: 0
        UserId: 0
        SuccessMessage: ''

    url: ->
        url = SiteMap.Admin.Responses.Edit + "?responseId=" + @attributes.ResponseId
        return encodeURI(url)

    parse: (response) ->
        {
            Content: response.Content,
            DateOfPublish: response.DateOfPublishAsString,
            BookId: response.BookId,
            UserId: response.UserId,
            SuccessMessage: response.SuccessMessage
        }